@extends('base')

@section('content')

<div class="col-lg-12"">
<h1 class="page-header">Add a Customer</h1>
</div>

    <!-- if there are creation errors, they will show here -->
    {{ HTML::ul($errors->all()) }}

    {{ Form::open(array('url' => 'customers')) }}

    <div class="form-group">
        {{ Form::label('name', 'Name') }}
        {{ Form::text('name', Input::old('name'), array('class' => 'form-control')) }}
        <br>
        {{ Form::label('billing_adr', 'Billing Address') }}
        {{ Form::text('billing_adr', Input::old('billing_adr'), array('class' => 'form-control')) }}
        <br>
        {{ Form::label('shipping_adr', 'Shipping Address') }}
        {{ Form::text('shipping_adr', Input::old('shipping_adr'), array('class' => 'form-control')) }}
        <br>
        {{ Form::label('contact', 'Contact Information') }}
        {{ Form::text('contact', Input::old('contact'), array('class' => 'form-control')) }}
        <br>
        {{ Form::label('credit_card', 'Credit Card Number') }}
        {{ Form::text('credit_card', Input::old('credit_card'), array('class' => 'form-control')) }}
        <br>
    </div>

    {{ Form::submit('Add Customer', array('class' => 'btn btn-primary')) }}

    {{ Form::close() }}
@stop